package com.qiku.reggie.common;

/**
 * 维护 ThreadLocal
 */
public class BaseContext {
    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    // 获取当前线程的数据
    public static Long getCurrentId(){
        return threadLocal.get();
    }

    // 设置当前线程的数据
    public static void setCurrentId(Long empId){
        threadLocal.set(empId);
    }
}
